/*
 * @Description:
 * @Author: william
 * @Date: 2025-06-16 16:33:12
 * @LastEditors: william
 * @LastEditTime: 2025-09-16 19:14:31
 */
const prefix = '/recipe'
const prefix2 = '/dict'

// -------------------  修改菜谱 -------------------
export const apiRecipeUpdate = data => g_https.post(`${prefix}/update`, data)

// -------------------  查询菜谱原料信息列表 -------------------
export const apiRecipeQueryIngredientList = data =>
  g_https.post(`${prefix}/queryIngredientList`, data)

// -------------------  查询菜谱详情 -------------------
export const apiRecipeQueryDetail = data =>
  g_https.post(`${prefix}/queryDetail`, data)

// -------------------  查询菜谱烹饪数量统计数据 -------------------
export const apiRecipeQueryCookCountStatData = data =>
  g_https.post(`${prefix}/queryCookCountStatisticsData`, data)

// -------------------  查询菜谱列表 -------------------
export const apiRecipeList = data => g_https.post(`${prefix}/list`, data)

// -------------------  批量导入菜谱 -------------------
export const apiRecipeImport = data => g_https.post(`${prefix}/import`, data)

// -------------------  删除菜谱 -------------------
export const apiRecipeDelete = data => g_https.post(`${prefix}/delete`, data)

// -------------------  新增菜谱 -------------------
export const apiRecipeCreate = data => g_https.post(`${prefix}/create`, data)

// -------------------  下载菜谱导入模板 -------------------
export const apiRecipeDownloadTemplate = data =>
  g_https.get(`${prefix}/downloadImportTemplate`, data)

// =====================  字典管理 =====================
// -------------------  查询字典下拉列表 -------------------
export const apiDictDropList = data => g_https.post(`${prefix2}/dropList`, data)

// -------------------queryCookStyleStatisticsData  查询菜谱系数统计 -------------------
export const apiRecipeQueryCookStyleStatisticsData = data =>
  g_https.post(`${prefix}/queryCookStyleStatisticsData`, data)

// -------------------queryTypeStatisticsData  查询菜谱类型统计 -------------------
export const apiRecipeQueryTypeStatisticsData = data =>
  g_https.post(`${prefix}/queryTypeStatisticsData`, data)
// -------------------queryCookCountStatisticsData  查询每天烹饪菜品总数量统计 -------------------
export const apiRecipeQueryCookCountStatisticsData = data =>
  g_https.post(`${prefix}/queryCookCountStatisticsData`, data)
